package android.pack;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class PruebandroidActivity extends Activity {
    /** Called when the activity is first created. */
   private EditText editTextUsuario, editTextContrasenia;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.principal);
        
        editTextUsuario= (EditText)findViewById(R.id.editTextUsuario);
        editTextContrasenia= (EditText)findViewById(R.id.editTextContrasenia);
    }
    public void lanzarJuego(View view) {
        Intent i = new Intent(this, PantallaJuego.class );
        i.putExtra("usuario", editTextUsuario.getText());
        i.putExtra("contrasenia", editTextContrasenia.getText());
        startActivity(i);
    }
}